package com.edu.danmu;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * 客户端消息的处理器
 */
public class NettyClientHandler extends SimpleChannelInboundHandler<String> {

    //收到消息的处理
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, String s) throws Exception {
        System.out.println("客户端收到消息：" + s);
    }
}
